package com.mihuo.entity.dto;

import cn.hutool.core.util.StrUtil;
import com.mihuo.util.AESUtil;
import lombok.Data;
import lombok.NonNull;

@Data
public class AccountLoginDTO {
    @NonNull
    private String account;
    @NonNull
    private String password;

    public String getPassword() {
        if(StrUtil.isNotBlank(password)){
            return AESUtil.decrypt(password);
        }
        return password;
    }
}
